<template>
	<view class="login-button" @click.stop @touchmove.prevent.stop>
		<view class="button-view">
			<image src="/static/home-login-but.png" class="button-image"></image>
			<view>登录可体验全部功能</view>
			<view class="button-item" @click="onNavLogin">立即登录</view>
		</view>
	</view>
</template>

<script>
	export default {
		name: "LoginGoButton",
		data() {
			return {

			};
		},
		methods: {
			onNavLogin() {
				uni.navigateTo({
					url: '/pages/login/login',
					events: {
						backEvent: () => this.$emit('change')
					}
				})
			}
		},
	}
</script>

<style scoped lang="scss">
	.login-button {
		width: 100%;
		height: 100vh;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 19;
		@extend .column;
		justify-content: flex-end;
		padding-bottom: 30upx;

		.button-view {
			width: 707rpx;
			background: rgba(6, 0, 0, 0.8);
			border-radius: 14rpx;
			backdrop-filter: blur(4px);
			padding: 18upx;
			padding-left: 156upx;
			position: relative;
			@extend .row-between;
			font-size: 25rpx;
			color: #FFFFFF;

			.button-image {
				width: 147upx;
				height: 120upx;
				position: absolute;
				left: 0;
				bottom: 13upx;
			}

			.button-item {
				width: 149rpx;
				height: 65rpx;
				background: linear-gradient(180deg, #FF7065 0%, #FF2615 100%);
				border-radius: 7rpx;
				font-weight: 400;
				font-size: 25rpx;
				color: #FFFFFF;
				@extend .column;
			}
		}
	}
</style>